< previous page page_53 next page >

Page 53
description of each. The table also identifies whether the value of the property can be changed while the program is running.
Table 3.2 Key Form Properties
Property NameDescriptionChangeable at Runtime
BorderStyleSets the type of border that is used for the formNo
ControlBoxDetermines whether the control box (containing the Move and Close menus) is visible when the program is runningNo
FontDetermines the font used to display text on the formYes
IconDetermines the icon that is shown in the form's title bar and that appears when the form is minimizedYes
MaxButtonDetermines whether the Maximize button is displayed on the form when the program is runningNo
MDIChildDetermines whether the form is a child form for an MDI applicationNo
MinButtonDetermines whether the Minimize button is displayed on the form when the program is runningNo
StartUpPositionDetermines the initial position of a form when it is first shownNo
WindowStateDetermines whether the form is shown maximized, minimized, or in its normal stateYes

Now you can take a closer look at some of these properties. The BorderStyle property has six possible settings that control the type of border displayed for the form (see Table 3.3). These settings control whether the form is sizable by clicking and dragging the border, they control the buttons that are shown on the form, and they even control the height of the form's title bar (see Figure 3.11).
Table 3.3 BorderStyle Property Settings
SettingEffect
0 - NoneNo border is displayed for the form. The form also does not display the title bar or any control buttons.
1 - Fixed SingleA single-line border is used. The title bar and control buttons are displayed for the form. The user cannot resize the form.

continues

 
< previous page page_53 next page >